VERSION=0.2.0
NAME=augim-${VERSION}
CTRLFILES=control postinst prerm
ROOTDIR=../src

all:
	echo "foo"

clean:
	echo "bar"

install:
	cp augim ${DESTDIR}/usr/bin/
	mkdir -p ${DESTDIR}/usr/lib/augim
	cp -r scavenger scavenger_common common presence *.py *.png *.gif *.glade ${DESTDIR}/usr/lib/augim/
	mkdir -p ${DESTDIR}/usr/share/applications/hildon
	cp augim.desktop ${DESTDIR}/usr/share/applications/hildon
	mkdir -p ${DESTDIR}/usr/share/dbus-1/services
	cp augim.service ${DESTDIR}/usr/share/dbus-1/services

deb:
	mkdir ${NAME}
	cp -r ${ROOTDIR}/* ${NAME}
	cp augim.desktop augim.service ${NAME}
	find ${NAME} -name ".svn" | xargs rm -rf
	cp Makefile augim ${NAME}
	cd ${NAME} && dh_make -s -c gpl -e madsk@daimi.au.dk --createorig
	cp ${CTRLFILES} ${NAME}/debian/
	cd ${NAME} && dpkg-buildpackage -rfakeroot

debclean:
	rm -rf ${NAME}
	rm -rf augim_${VERSION}*
